<template>
    <el-breadcrumb separator="/">
        <!-- <el-breadcrumb-item v-for="(item, index) in breadcrumbList" :key="index" :to="{ path: item.path }"> -->
        <el-breadcrumb-item v-for="(item, index) in breadcrumbList" :key="index">
            {{ item.meta.title }}
        </el-breadcrumb-item>
    </el-breadcrumb>
</template>

<script>
import { computed } from 'vue';
import { useRouter } from "vue-router";

export default {
    props: {},
    setup(props) {
        const router = useRouter()
        const breadcrumbList = computed(() => {
            // return router.currentRoute.value.matched.filter(item=>item.meta.title)
            return router.currentRoute.value.matched
        })
        return {
            breadcrumbList
        }
    },
}
</script>

<style lang="scss" scoped>
</style>